export default url => {
  const crud = window.$crud(url)

  crud.getList = (params) => window.$axios({
      url: `${url}/list`,
      method: 'get',
      params,
  })

  return {
      ...crud
  }
}